package com.sefon.smarteconomy.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
 
/**
 * 
 * Copyright: Copyright (c) 2018 SefonSoft 
 * 
 * @ClassName: User.java 
 * @Description:标签基本信息
 * 
 * @version: v1.0.0
 * @author: SF2170
 * @by AnalysisExcel2File.java
 * @Date 2018/03/26 22:07:28
 * 
 */
@Entity
@Table(name="label_info")
public class LabelInfo {

	/**
	* 唯一性，用于列表中展示
	*/
	@Column(name="`key`", unique=true, length=255, columnDefinition="varchar(255) COMMENT '标签key'")
	private String key;

	@Column(name="`name`", nullable=false, length=255, columnDefinition="varchar(255) COMMENT '标签名称'")
	private String name;

	/**
	* 唯一性， 用于确定标签之间的关系
	*/
	@Id 
	@Column(name="`code`", length=10, columnDefinition="bigint(10) COMMENT '标签id'")
	private Long code;

	/**
	* 0为一级标签
	*/
	@Column(name="`pcode`", length=10, columnDefinition="bigint(10) COMMENT '父标签id'")
	private Long pcode;

	@Column(name="`desc`", length=255, columnDefinition="varchar(255) COMMENT '标签描述'")
	private String desc;

	/**
	* 如 1d/次
	*/
	@Column(name="`update_rate`", length=255, columnDefinition="varchar(255) COMMENT '更新频率'")
	private String updateRate;

	@Column(name="`new_run_time`", columnDefinition="datetime COMMENT '上次执行时间'")
	private Date newRunTime;

	/**
	* 0 未执行 1 成功 2 失败
	*/
	@Column(name="`run_time`", length=2, columnDefinition="int(2) COMMENT '执行状态'")
	private Integer runTime;

	@Column(name="`create_date`", columnDefinition="datetime COMMENT '创建日期'")
	private Date createDate;

	@Column(name="`updata_date`", columnDefinition="timestamp COMMENT '修改日期'")
	private Date updataDate;


	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getCode() {
		return code;
	}

	public void setCode(Long code) {
		this.code = code;
	}

	public Long getPcode() {
		return pcode;
	}

	public void setPcode(Long pcode) {
		this.pcode = pcode;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getUpdateRate() {
		return updateRate;
	}

	public void setUpdateRate(String updateRate) {
		this.updateRate = updateRate;
	}

	public Date getNewRunTime() {
		return newRunTime;
	}

	public void setNewRunTime(Date newRunTime) {
		this.newRunTime = newRunTime;
	}

	public Integer getRunTime() {
		return runTime;
	}

	public void setRunTime(Integer runTime) {
		this.runTime = runTime;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdataDate() {
		return updataDate;
	}

	public void setUpdataDate(Date updataDate) {
		this.updataDate = updataDate;
	}

}
